﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Bench.aspx.cs" Inherits="_2011DBProject.Bench" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<link rel=StyleSheet HREF='design1.css' type='text/css'>
<head id="Head1" runat="server">

    <title>새벽 골프</title>
    <style type="text/css">
    body
    {
    	background-image:url('/image/background5.jpg')
    }
</style>
</head>
<body>
    <form id="form1" runat="server">
    <asp:ScriptManager runat="server" ID="ScriptManager1"></asp:ScriptManager>
    <div>
        <p align =left>
        <asp:Button ID="btnGoLogout" runat="server" onclick="btnGoLogout_onclick" 
            Text="☜ 로 그 아 웃" Width="150px" />
        <asp:Button ID="btnGoServer" runat="server" onclick="btnGoServer_onclick" 
            Text="☜ 서 버 선 택" Width="150px" />
        <asp:Button ID="btnGoCharacter" runat="server" onclick="btnGoCharacter_onclick" 
            Text="☜ 캐 릭 선 택" Width="150px" />
        <asp:Button ID="btnGoChannel" runat="server" onclick="btnGoChannel_onclick" 
            Text="☜ 채 널 선 택" Width="150px" />
        <asp:Button ID="btnGoMain" runat="server" onclick="btnGoMain_onclick" 
            Text="☜ 광 장 화 면" Width="150px" />
        </p>
        <asp:DataList ID="DataList1" runat="server" DataKeyField="CHARACTER_NAME" 
            DataSourceID="SqlDataSource1" Visible="False">
            <ItemTemplate>
                CHARACTER_NAME:
                <asp:Label ID="CHARACTER_NAMELabel" runat="server" 
                    Text='<%# Eval("CHARACTER_NAME") %>' />
                <br />
                SERVER_NO:
                <asp:Label ID="SERVER_NOLabel" runat="server" Text='<%# Eval("SERVER_NO") %>' />
                <br />
                TIREDNESS:
                <asp:Label ID="TIREDNESSLabel" runat="server" Text='<%# Eval("TIREDNESS") %>' />
                <br />
                STRENGTH:
                <asp:Label ID="STRENGTHLabel" runat="server" Text='<%# Eval("STRENGTH") %>' />
                <br />
                <br />
            </ItemTemplate>
        </asp:DataList>
        <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
            ConnectionString="<%$ ConnectionStrings:ConnectionString %>" 
            ProviderName="<%$ ConnectionStrings:ConnectionString.ProviderName %>" 
            
            SelectCommand="SELECT CHARACTER_NAME, SERVER_NO, TIREDNESS, STRENGTH FROM &quot;CHARACTER&quot; WHERE (SERVER_NO = :SERVER_NO) AND (CHARACTER_NAME = :CHARACTER_NAME)">
            <SelectParameters>
                <asp:SessionParameter Name="SERVER_NO" SessionField="SERVER" Type="Decimal" />
                <asp:SessionParameter Name="CHARACTER_NAME" SessionField="CHARACTER_NAME" 
                    Type="String" />
            </SelectParameters>
        </asp:SqlDataSource>
        <br />
        <br />
        <br />
        <br />
        <br />
        <br />
        <br />
        <br />
        <br />
        <br />
        <br />
        <br />
        <br />
        <br />
        <br />
        <br />
        <br />
        <br />
        <br />
        <br />
        <br />
        <br />
        <br />
        <br />
        <br />
    <asp:Timer ID="Timer1" runat="server" Interval="3000" ontick="Timer1_Tick">
    </asp:Timer>
        <br />
        <br />
        <br />
        <br />
        현재 
<asp:Label ID="lblCharacterName" runat="server" Text="Label" Font-Size="X-Large" 
        ForeColor="#FFFF66"></asp:Label>
        의 피로도 :

<asp:Label ID="lblTire" runat="server" Text="Label" Font-Size="X-Large" 
        ForeColor="#FFFF66"></asp:Label>

    </div>
    </form>
</body>
</html>
